package com.marcandjo.gwtproject.client.model.impl;

import java.util.ArrayList;
import java.util.List;

import com.marcandjo.gwtproject.client.model.Category;
import com.marcandjo.gwtproject.client.model.Photo;

public class CategoryImpl implements Category 
{
	private List<Photo> photos;
	private String id;
	private String description;

	public CategoryImpl(String id, String description)
	{
		this.id = id;
		this.description = description;
		
		photos = new ArrayList<Photo>();
	}
	
	public String getId() {
		return id;
	}

	public String getDescription() {
		return description;
	}

	public List<Photo> getPhotos() {
		return photos;
	}

	public void add(Photo photo) {
		photos.add(photo);
	}

	public void remove(Photo photo) {
		photos.remove(photo);
	}

}
